home *** CD-ROM | disk | FTP | other *** search
- unit DBComboU;
-
- interface
-
- uses
- WinProcs, WinTypes, Messages, SysUtils, Classes, Graphics, Controls,
- Forms, Dialogs, DBCtrls, StdCtrls, DBLookup, Db, DBTables;
-
- type
- TForm1 = class(TForm)
- TblCustomer: TTable;
- DSCustomer: TDataSource;
- TblOrders: TTable;
- DSOrders: TDataSource;
- DBLookupCombo1: TDBLookupCombo;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.FormCreate(Sender: TObject);
- var
- Loop: Integer;
- begin
- if FormStyle = fsStayOnTop then
- with DBLookupCombo1 do
- for Loop := 0 to ComponentCount - 1 do
- if Components[Loop] is TPopupGrid then
- with TPopupGrid(Components[Loop]) do
- SetWindowPos(Handle, HWnd_TopMost,
- 0, 0, 0, 0, swp_NoMove or swp_NoSize)
- end;
-
- end.
-